<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>yindume</title>
    <link rel="shortcut icon" href="/public/favicon.ico" />
    <link rel="stylesheet" href="/public/css/public.css">
    <link rel="stylesheet" href="/public/css/web.css">
    <link rel="stylesheet" href="/public/css/iconfont/iconfont.css">
    <script src="/public/js/jquery-1.12.4.min.js"></script>
    <script src="/public/js/web.js"></script>
</head>
<body>
<header class="header">
    <div class="header-box">
        <div class="header-logo"><a href="/">yindume</a></div>
        <ul>
            {% if cateid == '' %}
            <li class="on"><a href="/">首页</a></li>
            {% else %}
            <li><a href="/">首页</a></li>
            {% endif %}

            {% for navs in navs %}
            {% if cateid == navs.id %}
            <li class="on"><a href="/?cateid={{ navs.id }}">{{ navs.name }}</a></li>
            {% else %}
            <li><a href="/?cateid={{ navs.id }}">{{ navs.name }}</a></li>
            {% endif %}
            {% endfor %}
            <li class="nav-user">
                {% if !userInfo.id %}
                <a href="/log">登录</a>
                <a href="/reg">注册</a>
                {% else %}
                <a href="javascript:;" class="logout">退出</a>
                {% endif %}
            </li>
        </ul>
        <form class="header-form">
            <input type="text">
        </form>

        <div id="background"></div>
        <div class="menu-toggle">
            <div class="hamburger">
                <span></span>
                <span></span>
                <span></span>
            </div>
            <div class="cross">
                <span></span>
                <span></span>
            </div>
        </div>

    </div>
</header>


<div class="main-box">

    <div class="box-other">
        <div class="other-block" id="uesrInfo">
            <div class="other-title"><strong>网站介绍</strong></div>
            {% if userInfo.id %}
                <p><span class="nick-YD">{{userInfo.nickname}}({{userInfo.YD}})</span></p>
                {% if userInfo.isAdmin %}
                <p><span class="nick-info">你好，管理员!</span><a target="_blank" href="/admin">去管理</a></p>
                {% else %}
                <p><span class="nick-info">你好，欢迎光临我的博客！</span></p>
                {% endif %}
            {% endif %}
            <div class="other-desc">
                yindume简介博客(yindu.me)，我们关注Web前后端开发技术，Web开发资源和工具等，期待你的参与与分享..
            </div>
            <p class="index-user">
                <span>
                    {% if !userInfo.id %}
                    <a href="/log">登录</a>
                    <a href="/reg">注册</a>
                    {% else %}
                    <a href="javascript:;" class="logout">退出</a>
                    {% endif %}
                </span>
            </p>
        </div>
    </div>

    {% block main %}{% endblock %}

</div>



<footer>
    <div class="footer-main">
        yindume简洁博客
        <cite><span class="iconfont icon-fankui"></span>作者：尹渡</cite>
        <cite><span class="iconfont icon-youxiang"></span>邮箱：790716402@qq.com,15016716830@163.com</cite>
    </div>
</footer>
</body>
</html>